package com.zzyl.quartz.controller;

import com.zzyl.common.core.domain.R;
import com.zzyl.quartz.service.ContractTaskService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
public class ContractTaskController {

    @Autowired
    private ContractTaskService contractTaskService;

    @Scheduled(cron = "0 0 1 * * ?")
    public void findValidContracts(){
        R.ok(contractTaskService.findValidContracts());
    }
}
